<?php
namespace BoxApi\Controller;

use Think\Controller;

class CommonController extends \HomeController {
	public function _initialize() {
		parent::_initialize();
	}
//接口返回
	public function apiReturn($error, $arr, $msg) {
		$data = array(
			'error' => $error,
			'data' => $arr,
			'msg' => $msg,
		);
		exit(json_encode($data));
	}

}